interface Ipub {
  order: string;
  name: string;
  age: number;
  from?: string; // 可选属性
  readonly level: number; // 只读属性
}
let A1: Ipub = {
  order: "男",
  name: "张杰",
  age: 18,
  level: 18,
};
console.log(A1); // {order: '男', name: '张杰', age: 18, level: 18}
console.log(A1.name); //  张杰
